package com.qiangesoft.blog.system.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qiangesoft.blog.common.utils.DateUtils;
import com.qiangesoft.blog.system.entity.SysRole;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 用户响应体
 *
 * @author qiange
 * @date 2023-06-01
 */
@Data
public class SysUserDetailVO {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "账号")
    private String username;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "性别")
    private Integer sex;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "邮箱号")
    private String email;

    @ApiModelProperty(value = "手机号")
    private String phoneNumber;

    @ApiModelProperty(value = "用户简介")
    private String intro;

    @ApiModelProperty(value = "个人网站")
    private String webSite;

    @ApiModelProperty(value = "状态")
    private Boolean state;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DateUtils.FORMAT_STRING, timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后更新时间")
    @JsonFormat(pattern = DateUtils.FORMAT_STRING, timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "角色")
    private List<SysRole> roleList;
}
